var vm = new Vue({
    el: '#app',
    data :{
        students:[]
    },
    methods:{
        //添加学生信息
        add(){
            var student = {grade:'网站2班',name: '老黄', gender:'男',age:20}
            this.students.push(student)
        },
        //删除学生信息
        del () {
            this.students.pop()
        }
    }
})